package cn.col.gszf.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.data.annotation.CreatedDate;
import org.springframework.data.annotation.LastModifiedDate;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @Description 投票统计数
 * @Author: wanghong
 * @Date: 2024/6/17
 */
@Data
@TableName(value = "vote_options")
public class VoteOptions{

    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;

    @TableField("vote_id")
    private Integer voteId;

    @TableField("total_voting")
    private Integer totalVoting;

    @TableField("options_info")
    private String optionsInfo;

    @CreatedDate
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField("create_at")
    private LocalDateTime createAt;

    @LastModifiedDate
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField("update_at")
    private LocalDateTime updateAt;
}
